package lvcy.message.sender.builder;


import lvcy.message.entity.RequestEntity;

public abstract class HytMessageSenderBuilder extends MessageSenderBuilder{

	
	protected String getPostData(RequestEntity request){
		StringBuilder builder=new StringBuilder();
		String needStatus=request.getExtras().get("needstatus")==null?"false":request.getExtras().get("needstatus").toString();
		String productId=request.getExtras().get("product")==null?"":request.getExtras().get("product").toString();
		String extNo=request.getExtras().get("extno")==null?"":request.getExtras().get("extno").toString();
		builder.append("account=").append(request.getAccount()).append("&");
		builder.append("password=").append(request.getPassword()).append("&");
		builder.append("needstatus=").append(needStatus).append("&");
		builder.append("product=").append(productId).append("&");
		builder.append("extno=").append(extNo).append("&");
		return builder.toString();
	}
	
}
